package com.aaa.product.entity;

import java.io.Serializable;

public class SeckillStatus implements Serializable {

    // 订单对象
    private TbOrdInf tbOrdInf;
    // 秒杀用户名
    private String username;
    // 秒杀状态     1.排队中 2.秒杀等待支付（已下单） 3.支付超时  4.秒杀失败  5.支付完成。
    private Integer status;
    // 秒杀的商品 id
    private  String tid;
    // 订单 id
    private String oid;
    // 信息
    private String msg;


    public SeckillStatus(TbOrdInf tbOrdInf, String username, Integer status, String tid,String oid) {
        this.tbOrdInf = tbOrdInf;
        this.username = username;
        this.status = status;
        this.tid = tid;
        this.oid = oid;
    }

    public SeckillStatus() {
    }

    public TbOrdInf getTbOrdInf() {
        return tbOrdInf;
    }

    public void setTbOrdInf(TbOrdInf tbOrdInf) {
        this.tbOrdInf = tbOrdInf;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid = tid;
    }

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "SeckillStatus{" +
                "tbOrdInf=" + tbOrdInf +
                ", username='" + username + '\'' +
                ", status=" + status +
                ", tid='" + tid + '\'' +
                ", oid='" + oid + '\'' +
                ", msg='" + msg + '\'' +
                '}';
    }
}
